package org.spring.springboot.app.adv.advscreeninfo.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.StringUtils;
import org.spring.springboot.util.DateUtil;
import springfox.documentation.annotations.ApiIgnore;

import java.util.Date;

public class AdvScreenInfoForMyExamUpdateInVO {

    private static final long serialVersionUID = -1L;
    @ApiModelProperty(value = "id", hidden = false)
    private String id;
    @ApiModelProperty(value = "审核 2通过 3拒绝", hidden = false)
    private Integer state;
    @ApiModelProperty(value = "备注", hidden = false)
    private String remarks;
    @ApiModelProperty(value = "开始时间(例如2017-01-01)", hidden = false)
    private String startDate;
    @ApiModelProperty(value = "结束时间(例如2017-01-01)", hidden = true)
    private String endDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getStartDate() {
        return startDate;
    }

    public Date getStartDate_() {
        if(StringUtils.isBlank(this.startDate)){
            return new Date();
        }
        return DateUtil.strToDate(this.startDate +" 00:00:00");
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }
    public Date getEndDate_() {
        if(StringUtils.isBlank(this.endDate)){
            return new Date();
        }
        return DateUtil.strToDate(this.endDate +" 23:59:59");
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

}